package app;

public class Point {

	public double x;
	public double y;
	
	public Point(double x, double y) {
		super();
		this.x = x;
		this.y = y;
	}

	public Point(Point p, double length, double angle){
		
		x = p.x + (length * Math.cos(Math.toRadians(angle)));
		y = p.y + (length * Math.sin(Math.toRadians(angle)));
	}
	
}
